<script>
$(function(){
    $('#daily_form').submit(function(){
		var inputs = $('input[type=button]');
		inputs.attr('disabled','disabled');
		$.post(location.href,$(this).serialize(),function(data){
			alert(data.message);
			inputs.removeAttr('disabled');
			if (data.state == 1)
			{
				window.location.reload();
			}
		},'json');
        return false;
    });
});
</script>
<div class="t_2">
     <div class="fl">信息录入</div>
</div>
<div class="order_show" id="info_form">
	 <form id="daily_form" method="post">
	 <div id="continer">
     <table width="100%" cellpadding="0" cellspacing="0" border="0" class="info_table" id='tpl' rel="tables">
            <tr>
                <td class="td1">项目阶段数据：</td>
                <td><textarea name="data[project_phase]" style="width:334px;height:100px;font-size:12px;"><?php echo $this->project_phase; ?></textarea></td>
            </tr>
			<tr>
				<td class="td1">工作结果数据：</td>
				<td><textarea name="data[work_result]" style="width:334px;height:100px;font-size:12px;"><?php echo $this->work_result; ?></textarea></td>
			</tr>
			<tr>
				<td class="td1">日报项目设置：</td>
				<td><textarea name="data[item]" style="width:334px;height:100px;font-size:12px;"><?php echo $this->items; ?></textarea></td>
			</tr>
            <tr>
                <td colspan="2" style="text-align:center">
					<input type="submit" value="提交" />一行一个，每个限制在20个字符以内
				</td>
            </tr>
     </table>
	 </div>
	 </form>
</div>